-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upcoming: [M3-7302] - Replace NodeBalancer detail charts with Recharts #9983
upcoming: [M3-7302] - Replace NodeBalancer detail charts with Recharts #9983
Conversation
Coverage Report: ❌ |
{payload.map((item) => ( | ||
<Typography fontFamily={theme.font.bold} key={item.dataKey}> | ||
{item.dataKey}: {tooltipValueFormatter(item.value)} | ||
</Typography> | ||
))} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeData.push({ | ||
'Traffic In': trafficIn[i][1], | ||
'Traffic Out': trafficOut[i][1], | ||
t: trafficIn[i][0], | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Format data to easily display stacked areas https://recharts.org/en-US/examples/StackedAreaChart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpathipa The axis points displayed are expected to be slightly different but the data at each point are still the same |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Massive improvement considering Chart.js was very broken here!
Screen.Recording.2023-12-12.at.4.51.48.PM.mov
The UI and data looks good. I am noticing a delay when viewing the charts in the NodeBalancer Summary page. I do not experience any delays when looking at the charts in Linodes Transfer tab. However, the same behavior occurs in PROD, will require more investigation for the cause of this. |
Description 📝
This PR is part of a bigger effort to replace chart.js with the more modern Recharts.
Changes 🔄
List any change relevant to the reviewer.
Preview 📷
connections.before.mov
connections.after.mov
traffic.before.mov
traffic.after.mov
How to test 🧪
Prerequisites
(How to setup test environment)
Verification steps
(How to verify changes)
As an Author I have considered 🤔
Check all that apply